// 正确的做法
// 写一个一样的,然后用进去覆盖,这种方法比较麻烦,第七节学习update修改器
var db = connect('company')
var workmate3 = {
  name: 'MinJie',
  age: 20,
  sex: 0,
  job: 'UI设计',
  skill: {
    skillOne: 'PhotoShop',
    SkillTwo: 'UI',
    SkillThree: 'Word+Excel+PPT'
  },
  regeditTime: new Date()
}
db.workmate.update({ name: 'MinJie' }, workmate3)
print('[update]: The data was updated successfully');